﻿package mortal.game.view.lookPlayerInfo.view
{
    import Message.Public.*;
    import com.mui.controls.*;
    import mortal.component.window.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class LookDragonSoulPanel extends LookFightSoulPanel
    {

        public function LookDragonSoulPanel(param1:Window)
        {
            super(param1);
            return;
        }// end function

        override protected function addOtherObj() : void
        {
            var _loc_1:String = null;
            var _loc_3:GLoadingButton = null;
            if (_lookType == ELookUpType._ELookUpTypeFightSoul)
            {
                _loc_1 = ImagesConst.Fashion_FightSoulSkillText;
            }
            else if (_lookType == ELookUpType._ELookUpTypeFightMethod)
            {
                _loc_1 = ImagesConst.Fashion_FightMethodSkillText;
            }
            else if (_lookType == ELookUpType._ELookUpTypeDragonSoul)
            {
                _loc_1 = ImagesConst.Fashion_DragonSoulSkillText;
            }
            this.pushUIToDisposeVec(UIFactory.gImageBitmap(_loc_1, 212 + 4 + 3, 429 + 32, _window.contentTopOf3DSprite));
            var _loc_2:* = _slookPlayerMountInfo.state >= 0;
            if (_loc_2)
            {
                if (_slookPlayerMountInfo.code < 10)
                {
                    _currLevel.text = "" + _slookPlayerMountInfo.code;
                    _nextLevel.text = (_slookPlayerMountInfo.code + 1) + "";
                    _advanceLevelSprite.visible = true;
                }
                else
                {
                    _advanceLevelSprite.visible = false;
                }
                _adVanceBtnSprite.visible = true;
                _rightPart.expBar.visible = true;
            }
            else
            {
                _advanceLevelSprite.visible = false;
                _adVanceBtnSprite.visible = false;
                this.pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.FashionText_UnActive, 559 - 33, 403, _window.contentTopOf3DSprite));
                _loc_3 = UIFactory.gLoadingButton(ResFileConst.FightSoulActiveBtn, 299 + 5 - 3 + 265 + 8, 458 - 58 + 108, 114, 33, _window.contentTopOf3DSprite);
                _loc_3.filterEnabled = false;
                _rightPart.expBar.visible = false;
                this.pushUIToDisposeVec(_loc_3);
            }
            return;
        }// end function

    }
}
